

 #: 56956      Sub-topic 7 - Terminal Programs
Sb: #56952-Question
    13-Jan-85  22:20:39
Fm: CBM Sysop/deb! C.    70007,577
To: Chrisdos   76703,717

Yes, Chris, we know exactly what you need to know.

          :::grin:::

But I thought *U* were supposed to be the whiz here?????









So, here goes, my tutorial on .IMG files

The first line of an .IMG file looks like this in the INTEL HEX:

 :180000000400434333500108...etc
  ^^^^^^ <--- Those 3 bytes are the offset address of the file
 :180000000400434333500108...etc
        ^^ <-- That is a null, separating the data from the address
 :180000000400434333500108...etc
          ^^^^ <--- That is the number of characters in the .IMG header on the
file, in standard Lo/Hi 6502 format.
(there are 4 bytes in a 64 ID$ header)
 :180000000400434333500108...etc
              ^^^^^^ <--- Those 3 bytes are the Commodore 64 ID$ for VIDTEX.
 :180000000400434333500108...etc
                    ^^ <--- That byte represents whether it is a PRG or SEQ
file
$50=P  $53=S
 :180000000400434333500108...etc
                      ^^^^ <--- The first actual data bytes from the CBM file
on the disk now	 how here.  You will recognize this as a loading address for a
standard beginning of BASIC file.

Now, in an XMODEM transfer of an IMAGE file, everything after the initial null
delimiter between the offsett address and the header is sent.

Hence, the first character in XMODEM that is sent is $04-EOT for an IMAGE file.

There are six bytes there that are sent and must be stripped off at the
beginning of the download.

Is this perfectlly clear???

              deb!

P.S. lets put this in a DL somewhere, I g	  tired of explaining it...

